String.prototype.Trim=function() {return this.replace(/(^\s*)|(\s*$)/g,''); }; 
$("#js_refresh_btn").click(function(){
		location.reload();
	});
$("#JS_header_left_icon").click(function(){location.href=document.referrer;});
$("#JS_header_right_menu").click(function(){location.href='首页.html';});
function showCommentList(g){var e=[];
    for(var d=0,a=g.message.length;d<a;d++){
	  var h=g.message[d];
       e.push('<li class="goods-li"><div class="item clearfix">');
       e.push('<div class="img-a">');
       e.push('<img src="../skin/images/547bc70aNf7e3462a.png">');
       e.push('</div>');
       e.push('<div class="goods-date">');
       e.push('<p class="single-title">'+h.Descript+'</p>');
       e.push('<div class="extra">'+h.Adddate+'</div>');				
       e.push('</div>');
       e.push('<div class="single-none"><p class="price">'+h.add+h.Score+'</p><p class="countprice">余 '+h.CurrScore+'</p></div>');              
       e.push('</div></li>');
    }
  $("#JS_goods_list").append(e.join(""));
}
function loadComment(tid,page){
	     var g={Action:"GetPageRecords",tid:tid,page:page};
              $.ajax({
				url :'/m/page_ajax.asp',
				dataType:"json",
				data:g,
				success : function(k){
					   if (k.TotalPut>0){						  
						 $("#js-load-name").html(k.tname);
						 $("#js-load-text").html("数量");
						 $("#js-load-money").html(k.shouyitotal);
						 $("#js-lejishouyi").html(k.countshouyi);
						   if(parseInt(page)<parseInt(k.countpage)){
						   $(".js-more-button").attr("data-page",parseInt(page)+1);
						   }else{$(".js-more-button").hide();}
						  if(parseInt(page)==1){$("#js-loadding-text").hide()}
						 showCommentList(k);   //drawPage(k);						 
						 }else{
							 $("#js-load-name").html("K币");
						 $("#js-load-text").html("K币");
						 $("#js-load-money").html("0<i>个</i>");
						$("#JS_goods_list").html('<div class="simple-grid-none-data"><span class="text-success-ico icon-info-1"></span><span class="text-success-text">没有查询到符合条件的记录</span></div>');
						
						 }
				    }
			    });
}


